import axios from 'axios'

export function requestChat(config) {
    const instance = axios.create({
        baseURL: 'https://api.closeai-proxy.xyz/v1',
        timeout: 5000,
    })
    //设置post的Content-Type
    instance.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
    instance.defaults.headers.get['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
    instance.defaults.headers.post['Authorization'] = "Bearer sk-tHy9pL8JW1QIPM3GMNGCQIitk3rjKtq8j0k2HxGJ6dh9qCvC"
    return instance(config);
}







